﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000253 RID: 595
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueLevelInfo : IMessage<ChessRogueLevelInfo>, IMessage, IEquatable<ChessRogueLevelInfo>, IDeepCloneable<ChessRogueLevelInfo>, IBufferMessage
	{
		// Token: 0x170007E4 RID: 2020
		// (get) Token: 0x06001AF1 RID: 6897 RVA: 0x0004DC84 File Offset: 0x0004BE84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueLevelInfo> Parser
		{
			get
			{
				return ChessRogueLevelInfo._parser;
			}
		}

		// Token: 0x170007E5 RID: 2021
		// (get) Token: 0x06001AF2 RID: 6898 RVA: 0x0004DC8B File Offset: 0x0004BE8B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueLevelInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170007E6 RID: 2022
		// (get) Token: 0x06001AF3 RID: 6899 RVA: 0x0004DC9D File Offset: 0x0004BE9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueLevelInfo.Descriptor;
			}
		}

		// Token: 0x06001AF4 RID: 6900 RVA: 0x0004DCA4 File Offset: 0x0004BEA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLevelInfo()
		{
		}

		// Token: 0x06001AF5 RID: 6901 RVA: 0x0004DCC4 File Offset: 0x0004BEC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLevelInfo(ChessRogueLevelInfo other) : this()
		{
			this.areaInfo_ = ((other.areaInfo_ != null) ? other.areaInfo_.Clone() : null);
			this.id_ = other.id_;
			this.actionPoint_ = other.actionPoint_;
			this.areaIdList_ = other.areaIdList_.Clone();
			this.gCGAPALDNLK_ = other.gCGAPALDNLK_;
			this.layerId_ = other.layerId_;
			this.levelStatus_ = other.levelStatus_;
			this.hEEDLFMBNJH_ = other.hEEDLFMBNJH_;
			this.exploredAreaIdList_ = other.exploredAreaIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001AF6 RID: 6902 RVA: 0x0004DD6E File Offset: 0x0004BF6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLevelInfo Clone()
		{
			return new ChessRogueLevelInfo(this);
		}

		// Token: 0x170007E7 RID: 2023
		// (get) Token: 0x06001AF7 RID: 6903 RVA: 0x0004DD76 File Offset: 0x0004BF76
		// (set) Token: 0x06001AF8 RID: 6904 RVA: 0x0004DD7E File Offset: 0x0004BF7E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueAreaInfo AreaInfo
		{
			get
			{
				return this.areaInfo_;
			}
			set
			{
				this.areaInfo_ = value;
			}
		}

		// Token: 0x170007E8 RID: 2024
		// (get) Token: 0x06001AF9 RID: 6905 RVA: 0x0004DD87 File Offset: 0x0004BF87
		// (set) Token: 0x06001AFA RID: 6906 RVA: 0x0004DD8F File Offset: 0x0004BF8F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x170007E9 RID: 2025
		// (get) Token: 0x06001AFB RID: 6907 RVA: 0x0004DD98 File Offset: 0x0004BF98
		// (set) Token: 0x06001AFC RID: 6908 RVA: 0x0004DDA0 File Offset: 0x0004BFA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int ActionPoint
		{
			get
			{
				return this.actionPoint_;
			}
			set
			{
				this.actionPoint_ = value;
			}
		}

		// Token: 0x170007EA RID: 2026
		// (get) Token: 0x06001AFD RID: 6909 RVA: 0x0004DDA9 File Offset: 0x0004BFA9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AreaIdList
		{
			get
			{
				return this.areaIdList_;
			}
		}

		// Token: 0x170007EB RID: 2027
		// (get) Token: 0x06001AFE RID: 6910 RVA: 0x0004DDB1 File Offset: 0x0004BFB1
		// (set) Token: 0x06001AFF RID: 6911 RVA: 0x0004DDB9 File Offset: 0x0004BFB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int GCGAPALDNLK
		{
			get
			{
				return this.gCGAPALDNLK_;
			}
			set
			{
				this.gCGAPALDNLK_ = value;
			}
		}

		// Token: 0x170007EC RID: 2028
		// (get) Token: 0x06001B00 RID: 6912 RVA: 0x0004DDC2 File Offset: 0x0004BFC2
		// (set) Token: 0x06001B01 RID: 6913 RVA: 0x0004DDCA File Offset: 0x0004BFCA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LayerId
		{
			get
			{
				return this.layerId_;
			}
			set
			{
				this.layerId_ = value;
			}
		}

		// Token: 0x170007ED RID: 2029
		// (get) Token: 0x06001B02 RID: 6914 RVA: 0x0004DDD3 File Offset: 0x0004BFD3
		// (set) Token: 0x06001B03 RID: 6915 RVA: 0x0004DDDB File Offset: 0x0004BFDB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LevelStatus
		{
			get
			{
				return this.levelStatus_;
			}
			set
			{
				this.levelStatus_ = value;
			}
		}

		// Token: 0x170007EE RID: 2030
		// (get) Token: 0x06001B04 RID: 6916 RVA: 0x0004DDE4 File Offset: 0x0004BFE4
		// (set) Token: 0x06001B05 RID: 6917 RVA: 0x0004DDEC File Offset: 0x0004BFEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint HEEDLFMBNJH
		{
			get
			{
				return this.hEEDLFMBNJH_;
			}
			set
			{
				this.hEEDLFMBNJH_ = value;
			}
		}

		// Token: 0x170007EF RID: 2031
		// (get) Token: 0x06001B06 RID: 6918 RVA: 0x0004DDF5 File Offset: 0x0004BFF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> ExploredAreaIdList
		{
			get
			{
				return this.exploredAreaIdList_;
			}
		}

		// Token: 0x06001B07 RID: 6919 RVA: 0x0004DDFD File Offset: 0x0004BFFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueLevelInfo);
		}

		// Token: 0x06001B08 RID: 6920 RVA: 0x0004DE0C File Offset: 0x0004C00C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueLevelInfo other)
		{
			return other != null && (other == this || (object.Equals(this.AreaInfo, other.AreaInfo) && this.Id == other.Id && this.ActionPoint == other.ActionPoint && this.areaIdList_.Equals(other.areaIdList_) && this.GCGAPALDNLK == other.GCGAPALDNLK && this.LayerId == other.LayerId && this.LevelStatus == other.LevelStatus && this.HEEDLFMBNJH == other.HEEDLFMBNJH && this.exploredAreaIdList_.Equals(other.exploredAreaIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001B09 RID: 6921 RVA: 0x0004DED4 File Offset: 0x0004C0D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.areaInfo_ != null)
			{
				num ^= this.AreaInfo.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.ActionPoint != 0)
			{
				num ^= this.ActionPoint.GetHashCode();
			}
			num ^= this.areaIdList_.GetHashCode();
			if (this.GCGAPALDNLK != 0)
			{
				num ^= this.GCGAPALDNLK.GetHashCode();
			}
			if (this.LayerId != 0U)
			{
				num ^= this.LayerId.GetHashCode();
			}
			if (this.LevelStatus != 0U)
			{
				num ^= this.LevelStatus.GetHashCode();
			}
			if (this.HEEDLFMBNJH != 0U)
			{
				num ^= this.HEEDLFMBNJH.GetHashCode();
			}
			num ^= this.exploredAreaIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001B0A RID: 6922 RVA: 0x0004DFC2 File Offset: 0x0004C1C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001B0B RID: 6923 RVA: 0x0004DFCA File Offset: 0x0004C1CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001B0C RID: 6924 RVA: 0x0004DFD4 File Offset: 0x0004C1D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Id);
			}
			this.areaIdList_.WriteTo(ref output, ChessRogueLevelInfo._repeated_areaIdList_codec);
			if (this.areaInfo_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.AreaInfo);
			}
			if (this.ActionPoint != 0)
			{
				output.WriteRawTag(48);
				output.WriteInt32(this.ActionPoint);
			}
			if (this.GCGAPALDNLK != 0)
			{
				output.WriteRawTag(56);
				output.WriteInt32(this.GCGAPALDNLK);
			}
			this.exploredAreaIdList_.WriteTo(ref output, ChessRogueLevelInfo._repeated_exploredAreaIdList_codec);
			if (this.HEEDLFMBNJH != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.HEEDLFMBNJH);
			}
			if (this.LayerId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.LayerId);
			}
			if (this.LevelStatus != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.LevelStatus);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001B0D RID: 6925 RVA: 0x0004E0DC File Offset: 0x0004C2DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.areaInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.AreaInfo);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.ActionPoint != 0)
			{
				num += 1 + CodedOutputStream.ComputeInt32Size(this.ActionPoint);
			}
			num += this.areaIdList_.CalculateSize(ChessRogueLevelInfo._repeated_areaIdList_codec);
			if (this.GCGAPALDNLK != 0)
			{
				num += 1 + CodedOutputStream.ComputeInt32Size(this.GCGAPALDNLK);
			}
			if (this.LayerId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LayerId);
			}
			if (this.LevelStatus != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LevelStatus);
			}
			if (this.HEEDLFMBNJH != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.HEEDLFMBNJH);
			}
			num += this.exploredAreaIdList_.CalculateSize(ChessRogueLevelInfo._repeated_exploredAreaIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001B0E RID: 6926 RVA: 0x0004E1D0 File Offset: 0x0004C3D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueLevelInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.areaInfo_ != null)
			{
				if (this.areaInfo_ == null)
				{
					this.AreaInfo = new ChessRogueAreaInfo();
				}
				this.AreaInfo.MergeFrom(other.AreaInfo);
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.ActionPoint != 0)
			{
				this.ActionPoint = other.ActionPoint;
			}
			this.areaIdList_.Add(other.areaIdList_);
			if (other.GCGAPALDNLK != 0)
			{
				this.GCGAPALDNLK = other.GCGAPALDNLK;
			}
			if (other.LayerId != 0U)
			{
				this.LayerId = other.LayerId;
			}
			if (other.LevelStatus != 0U)
			{
				this.LevelStatus = other.LevelStatus;
			}
			if (other.HEEDLFMBNJH != 0U)
			{
				this.HEEDLFMBNJH = other.HEEDLFMBNJH;
			}
			this.exploredAreaIdList_.Add(other.exploredAreaIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001B0F RID: 6927 RVA: 0x0004E2BE File Offset: 0x0004C4BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001B10 RID: 6928 RVA: 0x0004E2C8 File Offset: 0x0004C4C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num <= 24U)
					{
						if (num == 8U)
						{
							this.Id = input.ReadUInt32();
							continue;
						}
						if (num != 24U)
						{
							goto IL_65;
						}
					}
					else if (num != 26U)
					{
						if (num == 34U)
						{
							if (this.areaInfo_ == null)
							{
								this.AreaInfo = new ChessRogueAreaInfo();
							}
							input.ReadMessage(this.AreaInfo);
							continue;
						}
						if (num != 48U)
						{
							goto IL_65;
						}
						this.ActionPoint = input.ReadInt32();
						continue;
					}
					this.areaIdList_.AddEntriesFrom(ref input, ChessRogueLevelInfo._repeated_areaIdList_codec);
					continue;
				}
				if (num <= 66U)
				{
					if (num == 56U)
					{
						this.GCGAPALDNLK = input.ReadInt32();
						continue;
					}
					if (num == 64U || num == 66U)
					{
						this.exploredAreaIdList_.AddEntriesFrom(ref input, ChessRogueLevelInfo._repeated_exploredAreaIdList_codec);
						continue;
					}
				}
				else
				{
					if (num == 88U)
					{
						this.HEEDLFMBNJH = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.LayerId = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.LevelStatus = input.ReadUInt32();
						continue;
					}
				}
				IL_65:
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000B41 RID: 2881
		private static readonly MessageParser<ChessRogueLevelInfo> _parser = new MessageParser<ChessRogueLevelInfo>(() => new ChessRogueLevelInfo());

		// Token: 0x04000B42 RID: 2882
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000B43 RID: 2883
		public const int AreaInfoFieldNumber = 4;

		// Token: 0x04000B44 RID: 2884
		private ChessRogueAreaInfo areaInfo_;

		// Token: 0x04000B45 RID: 2885
		public const int IdFieldNumber = 1;

		// Token: 0x04000B46 RID: 2886
		private uint id_;

		// Token: 0x04000B47 RID: 2887
		public const int ActionPointFieldNumber = 6;

		// Token: 0x04000B48 RID: 2888
		private int actionPoint_;

		// Token: 0x04000B49 RID: 2889
		public const int AreaIdListFieldNumber = 3;

		// Token: 0x04000B4A RID: 2890
		private static readonly FieldCodec<uint> _repeated_areaIdList_codec = FieldCodec.ForUInt32(26U);

		// Token: 0x04000B4B RID: 2891
		private readonly RepeatedField<uint> areaIdList_ = new RepeatedField<uint>();

		// Token: 0x04000B4C RID: 2892
		public const int GCGAPALDNLKFieldNumber = 7;

		// Token: 0x04000B4D RID: 2893
		private int gCGAPALDNLK_;

		// Token: 0x04000B4E RID: 2894
		public const int LayerIdFieldNumber = 12;

		// Token: 0x04000B4F RID: 2895
		private uint layerId_;

		// Token: 0x04000B50 RID: 2896
		public const int LevelStatusFieldNumber = 13;

		// Token: 0x04000B51 RID: 2897
		private uint levelStatus_;

		// Token: 0x04000B52 RID: 2898
		public const int HEEDLFMBNJHFieldNumber = 11;

		// Token: 0x04000B53 RID: 2899
		private uint hEEDLFMBNJH_;

		// Token: 0x04000B54 RID: 2900
		public const int ExploredAreaIdListFieldNumber = 8;

		// Token: 0x04000B55 RID: 2901
		private static readonly FieldCodec<uint> _repeated_exploredAreaIdList_codec = FieldCodec.ForUInt32(66U);

		// Token: 0x04000B56 RID: 2902
		private readonly RepeatedField<uint> exploredAreaIdList_ = new RepeatedField<uint>();
	}
}
